import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;


public class Output {
	
	private int caseNumber = 1;

	private BufferedWriter bw;
	public Output(String fileName) throws FileNotFoundException {
		bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileName + ".out")));
	}

	public void addCase(String content) throws IOException {
		bw.write("Case #" + caseNumber + ": " + content + "\n");
		caseNumber++;
	}

	public void close() throws IOException {
		bw.close();
	}
}
